
"""

	data store class for albergues
	
"""

from google.appengine.ext import db
from pois import POI
from misc import URL,Phone

class Albergue(POI):

	name      			=   db.StringProperty()
	town 				= 	db.StringProperty()
	address				= 	db.StringProperty(multiline=True)
	municipal 			=   db.BooleanProperty()

	added_by 			= 	db.UserProperty()
	added_on			= 	db.DateTimeProperty(auto_now_add=True)

	howtofind			= 	db.StringProperty(multiline=True)

	condition			= 	db.StringProperty(multiline=True)

	opening_time		= 	db.StringProperty(multiline=True)
	open_from			=   db.DateProperty()
	open_to 			=   db.DateProperty()
	
	places				=   db.IntegerProperty()
	kitchen				=	db.BooleanProperty()
	laundry facilities	=   db.BooleanProperty()
	washing_machine		=   db.BooleanProperty()
	dryer				=   db.BooleanProperty()
	breakfast			=   db.BooleanProperty()
	internet			=   db.BooleanProperty()
	
	extras				=   db.BooleanProperty()
	
	url					= 	db.ReferenceProperty(URL)
	email				=	db.EmailProperty()
	
	phones				=	db.ListProperty( db.Key )
	
	rating				=	db.RatingProperty()
	
	
	
	
	
	def __init__(self, name):
		
		self.name = name
		
	
#	poi	
#	ratings	
